package com.settlement.system.service.impl;

import com.settlement.system.mapper.BaseMapper;
import com.settlement.system.mapper.RefundAuditReportMapper;
import com.settlement.system.common.exception.ServiceException;
import com.settlement.system.model.entity.common.RefundAuditReport;
import com.settlement.system.service.IRefundAuditReportService;
import org.springframework.stereotype.Service;

import jakarta.annotation.Resource;
import java.util.Map;

/**
 * 退款稽核报表 服务实现类
 * @author Ximi
 * @since 2020-04-15
 */
@Service
public class RefundAuditReportServiceImpl extends BaseServiceImpl implements IRefundAuditReportService {

    @Resource
    private RefundAuditReportMapper refundAuditReportMapper;

    @Override
    public BaseMapper init() {
        return refundAuditReportMapper;
    }

    /**
     * 获取合计
     * @param params
     * @return
     * @throws ServiceException
     */
    @Override
    public RefundAuditReport selectFoot(Map<String, Object> params) throws ServiceException {
        try {
            return refundAuditReportMapper.selectFoot(params);
        } catch (Exception e) {
           throw  new ServiceException(e);
        }
    }
}

